home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 324 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.2 KB

  1. Path: lrz-muenchen.de!sun2!ua302aa
  2. From: ua302aa@sun2.lrz-muenchen.de (Kurt Watzka)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: SYSTEM CALL RESULT
  5. Date: 4 Jan 1996 12:37:02 GMT
  6. Organization: Leibniz-Rechenzentrum, Muenchen (Germany)
  7. Distribution: world
  8. Message-ID: <4cghle$idc@sparcserver.lrz-muenchen.de>
  9. References: <4cbn2i$env@bisance.citi2.fr> <820609309snz@intellic.demon.co.uk> <DKLvt9.Jz@ariel.cs.yorku.ca>
  10. NNTP-Posting-Host: sun2.lrz-muenchen.de
  11.  
  12. cs911319@ariel.cs.yorku.ca (STEPHEN HOI CHI KONG) writes:
  13.  
  14. >>>Is there a way to get the result of a
  15. >>>system call within a C program. 
  16.  
  17. >    I believe you have a more direct approach.
  18. >try
  19. >%man popen
  20.  
  21. >    This system call redirect all stdout from external command into
  22. >user buffer (char buf[]). Good Luck.
  23.  
  24.   The problem with non-standard functions like popen() is that this may
  25. well be true on some systems, but is not true for systems conforming to
  26. one of the following standards:
  27.  
  28.   AES, SVID2, POSIX.2 and maybe some others that I'm not aware of.
  29.  
  30. UNIX specific questions should be discussed in comp.unix.programmer,
  31. not in comp.lang.c.
  32.  
  33. Kurt
  34. --
  35. | Kurt Watzka                             Phone : +49-89-2180-6254
  36. | watzka@stat.uni-muenchen.de
  37. | ua302aa@sunmail.lrz-muenchen.de
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.